package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@NoArgsConstructor//无参构造器
@AllArgsConstructor//全参构造器
@Data
public class Catalog2VO {

    private String catalog1Id;//当前分类的父ID，一级分类的id

    private List<Catalog3VO> catalog3List;//三级分类子ID

    private String id;

    private String name;

    @NoArgsConstructor//无参构造器
    @AllArgsConstructor//全参构造器
    @Data
    public static class Catalog3VO {
        private String catalog2Id;//夫分类，2级分类id

        private String id;

        private String name;
    }
}
